package com.hogocloud.myframe.ui

import android.os.Bundle
import com.hogocloud.corelibrary.base.BaseActivity
import com.hogocloud.corelibrary.common.adapter.fragment.FragmentAdapter
import com.hogocloud.myframe.R
import kotlinx.android.synthetic.main.activity_coordinator.*

class CoordinatorActivity : BaseActivity() {

    override fun initLayout(): Int = R.layout.activity_coordinator

    override fun initView(savedInstanceState: Bundle?) {

       val fragment1 = TestRecyclerFragment()
        val fragment2 = TestRecyclerFragment()

        vp_test.adapter = FragmentAdapter(supportFragmentManager, listOf(fragment1, fragment2))

        tl_test.setupWithViewPager(vp_test)

    }

}
